﻿<%@ Page Language="C#" MasterPageFile="~/MembersHome/MembersHome.Master" AutoEventWireup="true" CodeBehind="fansmanage.aspx.cs" Inherits="TCS.Web.MembersHome.fansmanage" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/popup_layer.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
//	new PopupLayer({trigger:"#w_class5",popupBlk:"#w_class5_con",closeBtn:"#close5"});
//	(".opp_tip_fans").onclick(":hidden")
});
function popdv(div,popdiv)
{   
    //alert('aaaa');
    new PopupLayer({trigger:"#"+div,popupBlk:"#"+popdiv,closeBtn:"#close5"});
    return false;
}
</script>
<script type="text/javascript">
    function Add(uid)
    {
        $.post("/membershome/addattention.aspx",{ wb_user_id:""+uid+""},function(data){if(data==1){alert("添加成功！"); }else{alert("添加失败");} });
        return false;
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <asp:UpdatePanel ID="up1" runat="server">
    <ContentTemplate>
    <h2 class="content_title">粉丝管理 <a href=followersmanage.aspx>关注管理</a></h2>
        <div class="search_if_if">
			<h3 class="title">查询条件</h3>
			<ul>
				<li class="radio_q">
					<em>状态：</em>
					<span>
						<asp:DropDownList ID="dropProvinces" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="dropProvinces_SelectedIndexChanged"></asp:DropDownList>
					</span>
					<span>
						<asp:DropDownList ID="dropCity" runat="server"></asp:DropDownList>
					</span>
				</li>
				<li class="radio_q">
					<em>类型：</em>
					<span><asp:RadioButton ID="rbtAll" runat="server" Checked="true" GroupName="rbtGender" /><label>全部</label></span>
					<span><asp:RadioButton ID="rbtM" runat="server" GroupName="rbtGender" /><label>男</label></span>
					<span><asp:RadioButton ID="rbtF" runat="server" GroupName="rbtGender" /><label>女</label></span>
				</li>
				<li class="op_end">
					<span><asp:Button CssClass="search_btn_weibo_manage" ID="btnSearch" 
                        runat="server" onclick="btnSearch_Click" /></span>
					<span class="clear_search_if"><asp:LinkButton ID="lbtnClearSearchKey" 
                        runat="server" Text="清除查询条件" onclick="lbtnClearSearchKey_Click"></asp:LinkButton></span>
					<span class="search_data">有<i><asp:Literal ID="ltrRetcount" runat="server"></asp:Literal> </i>条记录符合查询条件</span>
				</li>
			</ul>
		</div>
        <div class="checkbox_con">
			<p class="r1">
				<span class="type_f">排序方式</span>
				<span><asp:RadioButton ID="rbtdefault" runat="server" GroupName="sort" 
                    Checked="true" oncheckedchanged="rbtdefault_CheckedChanged" AutoPostBack="true" /><label>最新更新</label></span>
				<span><asp:RadioButton ID="rbtfanscount" runat="server" GroupName="sort" 
                    oncheckedchanged="rbtfanscount_CheckedChanged" AutoPostBack="true" /><label>粉丝人数</label></span>
			</p>
        	<span><input type="checkbox" class="check_all" /><label>全选</label></span>
            <span><input type="button" class="mm_all" /></span>
        </div>
		<div class="fans_list">
		
		<asp:Repeater ID="rptFanslist" runat="server">
		<ItemTemplate>
			<div class="cage">
				<div class="cage_t">
					<a href='http://www.weibo.com/<%# Eval("FansWBId") %>' target="_blank" class="cage_img"><img src='<%#Eval("profile_image_url")%>' /></a>
					<dl>
						<dt><a href='http://www.weibo.com/<%# Eval("FansWBId") %>' target="_blank"><%#Eval("FansName")%></a><a href="#" class='<%#Eval("Verified").ToString()=="true"?"v":""%>'></a></dt>
						<dd><%#Eval("Location")%></dd>
						<dd class='<%#Eval("Gender").ToString()=="m"?"boy":"girl"%>'></dd>
					</dl>
				</div>
				<div class="cage_b">
					<p><%#Eval("Description")%></p>
					<div class="cage_num">
						<dl class="fens_num l">
							<dt>粉丝数</dt>
							<dd><%#Eval("FansFansCount")%></dd>
						</dl>
						<dl class="see_num r">
						<dt>关注数</dt>
						<dd><%#Eval("FansFriendShipCount")%></dd>
						</dl>
					</div>
					<div class="cage_sel">
						<span class="l"><input type="checkbox"><label>选择</label></span>
						<div class="operate r" id="w_class5<%#Eval("FansWBID")%>" onclick="return popdv('w_class5<%#Eval("FansWBID")%>','w_class5_con<%#Eval("FansWBID")%>')"><span ><a href="javascript:void(0)" >操作</a></span></div>
						<div id="w_class5_con<%#Eval("FansWBID")%>" style="display:none;" class="opp_tip_fans">
							<p><a href="">@TA</a></p>
							<%--<p><a href="">给TA发送私信</a></p>--%>
							<p><a href="#" onclick="return Add(<%#Eval("FansWBID")%>)">添加关注</a></p>
						</div>
					</div>
					
				</div>
			</div>
			</ItemTemplate>
		</asp:Repeater>
			
	<webdiyer:aspnetpager id="AspNetPager1" runat="server" PageSize="9" AlwaysShow="True" OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" CustomInfoSectionWidth="20%" ShowPageIndexBox="always" PageIndexBoxType="DropDownList"
    ></webdiyer:aspnetpager>
			</div>
			</ContentTemplate>
		</asp:UpdatePanel>
</asp:Content>
